package com.kenny.concurrency.example.imuatable;

import com.google.common.collect.*;
import com.kenny.concurrency.anoations.ThreadSafe;

import java.util.Collections;
import java.util.Map;

@ThreadSafe
public class ImuatableTest3 {


    private   static ImmutableList list = ImmutableList.of(1,2,3);

   private static ImmutableSet set = ImmutableSet.copyOf(list);
   private static ImmutableMap<Object, Object> map = ImmutableMap.builder().put(1,2).build();
    public static void main(String[] args) {
//       list.add(3);
       map.put(3,3);
    }


}
